# Contributor: David Demelier <markand@malikania.fr>
# Maintainer: David Demelier <markand@malikania.fr>
pkgname=libretro-crocods
pkgver=0_git20210314
pkgrel=1
_commit="86eeccfb68ad6a1cb39ef5b008902f6636d7d194"
pkgdesc="amstrad CPC emulator for libretro"
url="https://github.com/libretro/libretro-crocods"
arch="all"
license="MIT"
makedepends="zlib-dev"
source="$pkgname-$_commit.tar.gz::https://github.com/libretro/libretro-crocods/archive/$_commit.tar.gz
	patch-unbundle.patch
	"
builddir="$srcdir/libretro-crocods-$_commit"
options="!check" # No tests

build() {
	rm -rf deps/libz
	make
}

package() {
	install -Dm644 crocods_libretro.so "$pkgdir"/usr/lib/libretro/crocods_libretro.so
}

sha512sums="3ec6134ea564288bf571c2b245e64daae65795189d111e84bb545fda57385412993bebc4ec2b4804462eab608a33098d5e0268d456583006970f86ec598ce5a5  libretro-crocods-86eeccfb68ad6a1cb39ef5b008902f6636d7d194.tar.gz
fedceb287afc00c9d17a5abd13f45e4f2c5b97047d17db3863aaccd16e712d1a030a3641592f2b95404179263b0f0975c15d508619e420a74804348e828de85e  patch-unbundle.patch"
